package com.edu.eduservice.client;

import com.edu.commonutils.R;
import com.edu.eduservice.client.OpenFeign.VodClientImpl;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.*;

import java.util.List;

/**
 * @ClassName VodClient
 * @date 2022/9/21 10:06
 * @Version 1.0
 */
//vod接口
@FeignClient(name = "service-vod",fallback = VodClientImpl.class)
@Component
public interface VodClient {

    @DeleteMapping("/vodservice/video/delVideo/{id}")
    @ResponseBody
    public R del(@PathVariable("id") String id);

    //拿到视频的播放地址
    @PostMapping("/vodservice/video/edit/{id}")
    @ResponseBody
    public String getVideoPath(@PathVariable String id);


    //删除多个视频
    @DeleteMapping("/vodservice/video/delVideoAll")
    @ResponseBody
    public R delmany(@RequestParam("vidList") List<String> vidList);
}
